

#pragma once
#include <windows.h>
#include <vcclr.h>

#include "../ScriptHook/ScriptThread.h"
#include "ScriptDomain.h"
#include "ScriptManager.h"
#include "../ScriptHook/ScriptHookManager.h"
#include "../ScriptHook/Services/KeyboardHook.h"

class WorkerThread : public ScriptThread
{
protected:


public:
	WorkerThread();
	~WorkerThread();
	void RunTick();
	void OnStart();
	void OnKill();
	void CheckKeys();

	void UnloadScripts();
	void LoadScripts();
	gcroot<GTA::ScriptManager^> Scripts; // will hold our scriptmanager instance (which we use to communicate with scripts)
	IntPtr DllHandle;
	UInt32 DllThreadId;

	bool IsScriptsActive; // is our script domain built
private:




};